import http from '../index'

export const getCollections = (url,data) => {
    return http({
        url,
        method: 'POST',
        data: data
    })
}

export const uploadFile = (data) => {
    return http({
        url:'/api/upload/',
        method: 'POST',
        data: data
    })
}

// 版本检查
export const getVersion = (data)=>{
    return http({
        url:'/api/version/latest',
        method: 'get',
        data
    })
}